'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: 4_huggingface_remote.py
* @Time: 2025/10/27
* @All Rights Reserve By Brtc
'''
import dotenv
from langchain_huggingface import HuggingFaceEndpointEmbeddings

dotenv.load_dotenv()

embeddings = HuggingFaceEndpointEmbeddings(model="sentence-transformers/all-MiniLM-L12-v2")

query = embeddings.embed_query("你好我叫 博小睿")
print(query)
print(len(query))
